package org.jeecg.modules.common.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.common.entity.Feedback;
import org.jeecg.modules.common.facade.IFeedbackFacade;
import org.jeecg.modules.common.service.IFeedbackService;
import org.jeecg.modules.common.vo.FeedbackVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 反馈
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class FeedbackFacadeImpl extends IFacadeImpl<FeedbackVo, Feedback, IFeedbackService>  implements IFeedbackFacade<FeedbackVo, Feedback> {
        @Autowired
        private IFeedbackService feedbackService;


         @Override
         public Feedback po2Vo(FeedbackVo vo) {
                Feedback po = new Feedback();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public FeedbackVo vo2Po(Feedback po) {
                FeedbackVo vo = new FeedbackVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
